var mongoose = require('mongoose');
var Schema = mongoose.Schema;


var CinemaSchema = new Schema({
    name: String,
    type: String,
    city: String,
    lat: Number,
    long: Number,
    s_width: Number,
    s_height: Number,
    ticket_url: String,
    loc : {
        type: [Number], 
        index: '2d'
    }
});

module.exports = mongoose.model('Cinema', CinemaSchema);